#include "FileTooBigException.h"
#include <boost/format.hpp>

FileTooBigException::FileTooBigException(std::string filename, int size_in_bytes, int max_size_in_bytes)
: VccException(""), filename(filename), size_in_bytes(size_in_bytes), max_size_in_bytes(max_size_in_bytes) {
    this->message = str(boost::format("File %s is %d bytes and is larger than the maximum allowed size of %d bytes.") % filename % size_in_bytes % max_size_in_bytes);
}

FileTooBigException::~FileTooBigException() {
    // empty
}

std::string FileTooBigException::get_filename() {
    return this->filename;
}

int FileTooBigException::get_size_in_bytes() {
    return this->size_in_bytes;
}

int FileTooBigException::get_max_size_in_bytes() {
    return this->max_size_in_bytes;
}
